﻿<UserControl x:Class="Gao.Poker.App.Game.GameControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        
        <StackPanel Grid.Row="0" Margin="5" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Padding="5" Style="{DynamicResource Orrange}" Width="60" FontSize="16" Height="35" Click="Start_Click">开始</Button>
            <Button Padding="5" Style="{DynamicResource Orrange}" Width="60" FontSize="16" Height="35" Click="Pause_Click">暂停</Button>
            <Button Padding="5" Style="{DynamicResource Orrange}" Width="60" FontSize="16" Height="35" Click="Continue_Click">继续</Button>
            <Button Padding="5" Style="{DynamicResource Orrange}" Width="60" FontSize="16" Height="35" Click="Close_Click">关闭</Button>
            <Button Padding="5" Style="{DynamicResource Orrange}" Width="60" FontSize="16" Height="35" Click="Caption_Click">字幕</Button>
            <Button Padding="5" Style="{DynamicResource Orrange}" Width="60" FontSize="16" Height="35" Click="MaxWindow_Click">最大化</Button>
        </StackPanel>

        <ContentControl Grid.Row="1" Name="cc"/>

        <Popup Name="p" AllowsTransparency="True"  PopupAnimation="Fade" Placement="Mouse">
            <Border BorderBrush="Black" BorderThickness="1" Background="AliceBlue">
                <StackPanel Margin="10">
                    <TextBox Name="txtCaption" Width="200" Height="80" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"/>
                    <Button Margin="5" Style="{DynamicResource Orrange}" Width="60" FontSize="16" Height="35" Click="CaptionClose_Click">关闭</Button>
                </StackPanel>
            </Border>
            
        </Popup>
    </Grid>
</UserControl>
